﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using ueEngine.Framework.Configuration.Config.WorkPool;
using ueEngine.Framework.Configuration.Config.ExchangeService;
using ueEngine.Framework.Configuration.Config.Observer;

namespace ueEngine.Framework.Configuration
{
    public class ConfigReader
    {
        public static WorkPoolSection WorkPool
        {
            get
            {
                return ConfigurationManager.GetSection("workpool") as WorkPoolSection;
            }
        }
        public static ESConfigSection ESConfig
        {
            get
            {
                return ConfigurationManager.GetSection("exchangeservice") as ESConfigSection;

            }
        }
        public static ObserverSection Observer
        {
            get
            {
                return ConfigurationManager.GetSection("observer") as ObserverSection;
            }
        }
    }
}
